package tech.aistar.wyymusicplayer.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Service;
import tech.aistar.wyymusicplayer.mapper.PlaylistMapper;
import tech.aistar.wyymusicplayer.mapper.UserMapper;
import tech.aistar.wyymusicplayer.pojo.Playlist;
import tech.aistar.wyymusicplayer.pojo.PlaylistVo;

import java.util.List;

@Service
public class PlaylistServiceImpl implements PlaylistService{
    @Autowired
    private PlaylistMapper playlistMapper;
    @Override
    public List<Playlist> FindAll() {
        return playlistMapper.FindAll();
    }

    @Override
    public List<PlaylistVo> FindByChinese() {
        return playlistMapper.FindByChinese();
    }

    @Override
    public List<PlaylistVo> FindByEnglish() {
        return playlistMapper.FindByEnglish();
    }

    @Override
    public List<PlaylistVo> FindByKorean() {
        return playlistMapper.FindByKorean();
    }

    @Override
    public List<PlaylistVo> FindByJapanese() {
        return playlistMapper.FindByJapanese();
    }
}
